package com.s3.khospitalds.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.s3.khospitalds.entity.Patientlist;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: xw
 * @CreateTime: 2025/2/25
 * @Description: 处理药方表
 * @Version: 1.0
 */
@Service
public interface PatientlistService extends IService<Patientlist> {
    public List<Patientlist> selectWaitingNumber(int num);
    public List<Patientlist> selectPatientNumber(String num);
    public List<Patientlist> selectWaitingNumber0();
    public List<Patientlist> selectWaitingNumber2();
    public List<Patientlist> selectName(String name);
    public List<Patientlist> selectNameAndNumber(String number, String name);
    public int updateWaitingNumber(String number);
    public int updateWaitingNumber2(String number);
    public int updatePharmacist(String pharmacist, String number);
    public int insertPatientList(Patientlist patientlist);
    public int updatePatientList( Patientlist patientlist);
    public int deletePatientList(String number);
    public int insertPatientList2(
            String date,
            String number,
            String name,
            String sex,
            int age,
            String phone,
            String idCard,
            String disease,
            String doctor,
            String position,
            String copayFee);
    public int updateTotalPrice(@Param("price")double price,@Param("number") String number);
}

